/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TranSport;

import java.io.Serializable;

/**
 *
 * @author Administrator
 */
public class StringDataBase implements Serializable{
    public String DataBaseName ;
    public StringTable[] Table;

    public StringDataBase()
    {
        DataBaseName = "";
        Table = null;
    }
    public StringDataBase(String database, StringTable[] table) { 
        this.DataBaseName = database;
        Table = table;
    }
    public void Copy(StringDataBase stringDatabse)
    {
        this.DataBaseName = stringDatabse.DataBaseName;
        if(stringDatabse.Table != null)
        {
            this.Table = new StringTable[stringDatabse.Table.length];
            for(int i= 0;i<this.Table.length;i++)
            {
                Table[i] = stringDatabse.Table[i];
            }
        }
        else
        {
            this.Table = null;
        }
    }
    
    
}
